package com.example.demo.aop;

import com.example.demo.dbo.CmsPublishRespone;
import com.example.demo.util.JsonUtil;

/**
 * @author: yby
 * @desc:
 * @date: 2024/7/15 11:53
 */
public class Test {

    /*
     * @Description:
     * @param: args
     * @return void
     * @author yby
     * @date 2024/7/15 13:47
     */
    public static void main(String[] args) {

//        String response = "{\"success\":true,\"code\":\"0000\",\"message\":\"succeed\",\"dataRows\":1,\"data\":\"<?xml version=\\\"1.0\\\" encoding=\\\"GBK\\\"?>\\n<returnvalue>\\n\\t<result>success</result>\\n\\t<fileid>40497991</fileid>\\n\\t<errormessage></errormessage>\\n\\t<url>http://v.people.cn/n1/2025/0610/c61600-40497991.html</url>\\n</returnvalue>\\n\",\"serverIp\":\"10.6.224.58\",\"timestamp\":\"2025-06-10 21:13:43.185\"}";
//        CmsPublishRespone cmsPublishRespone = JsonUtil.fromJson(response, CmsPublishRespone.class);
//        if (cmsPublishRespone.getSuccess()) {
//            System.out.println(true);
////        }
//        Byte byte1 = 5;
//        byte  byte2 = 5;
//        if (byte1.equals(byte2)) {
//            System.out.println(1);
//        }
//
//        String type = null;
//        switch (type) {
//            case "111":
//                System.out.println("111");
//            default:
//                System.out.println("22222");
//
//        }

        String e22 = "11111";

        int min = Math.min(e22.length(), 1020);
        System.out.println(min);

    }
}
